/**
 * Copyright (c) 2013-Now http://jeesite.com All rights reserved.
 * No deletion without permission, or be held responsible to law.
 * @author PR
 */
import { defHttp } from '/@/utils/http/axios';
import { useGlobSetting } from '/@/hooks/setting';
import { BasicModel, Page } from '../model/baseModel';

const { adminPath } = useGlobSetting();

export interface BasInvExc extends BasicModel<BasInvExc> {
  cinvcode?: string; // 存货编码
  priority?: number; // 优先级
}

export const basInvExcList = (params?: BasInvExc | any) =>
  defHttp.get<BasInvExc>({ url: adminPath + '/bas/inv/basInvExc/list', params });

export const basInvExcListData = (params?: BasInvExc | any) =>
  defHttp.post<Page<BasInvExc>>({ url: adminPath + '/bas/inv/basInvExc/listData', params });

export const basInvExcForm = (params?: BasInvExc | any) =>
  defHttp.get<BasInvExc>({ url: adminPath + '/bas/inv/basInvExc/form', params });

export const basInvExcSave = (params?: any, data?: BasInvExc | any) =>
  defHttp.postJson<BasInvExc>({ url: adminPath + '/bas/inv/basInvExc/save', params, data });

export const basInvExcDelete = (params?: BasInvExc | any) =>
  defHttp.get<BasInvExc>({ url: adminPath + '/bas/inv/basInvExc/delete', params });
